home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-09 | 2.2 KB | 48 lines | [TEXT/R*ch] |
- /*
- ** Newton Developer Technical Support Sample Code
- **
- ** SoupDrink, code to demonstrate use of the CDILs and FDILs
- **
- ** by David Fedor, Rob Langhorne and Christopher Bell
- **
- ** Copyright © 1995-1996 by Apple Computer, Inc. All rights reserved.
- **
- ** You may incorporate this sample code into your applications without
- ** restriction. This sample code has been provided "AS IS" and the
- ** responsibility for its operation is 100% yours. You are not
- ** permitted to modify and redistribute the source as "DTS Sample Code."
- ** If you are going to re-distribute the source, we require that you
- ** make it clear in the source that the code was descended from
- ** Apple-provided sample code, but that you've made changes.
- */
-
-
- This is a complete MacOS application which demonstrates use of the CDILs and
- the FDILs. It is designed to communicate with the Newton SoupDrink
- package, which you probably also got with this sample code.
-
- Most of the interesting DIL code can be found in the file Engine.c, which
- holds the cross-platform code which makes most of the DIL API calls.
-
- The routine SetupPortMenu() demonstrates how to dynamically find the names
- of the available ports - these can be different on different models of MacOS
- computers, and change in localized versions of the Macintosh System.
-
- The SoupDrink application has two test scripts. The first, "Soup Drink",
- will read the entire contents of any soup on the Newton device. It does
- this by sending a command to the Newton device indicating the name of the
- soup to read, and then repeatedly reading frames which are sent from the
- Newton application, converting them to text, and writing them to the file
- SoupData.out.
-
- The second test script, "Add New Name Card", constructs a name card frame
- for the built-in Names application, and sends it to the Newton device. The
- Newton SoupDrink application adds it to the Names soup.
-
-
- Note that the CSTR resources found in the file SoupDrink.rsrc must be
- linked in to every DIL application. They are used internally by the CDIL
- to find the appropriate Communications Toolbox files. These CSTR resources
- can also be found in the file CSTR.rsrc, which does not contain the
- SoupDrink-specific resources.
-